package org.example.simple_factory;

/**
 * @author Zhang Yu
 * @description: 加法子类
 * @date 2024/5/20 14:00
 */
public class OperationAdd extends Operation {
    @Override
    public double getResult() {
        double result = 0;
        result = getNumberA() + getNumberB();
        return result;
    }
}
